Skip to content

chore: Refactor location parameter usage in main.bicep#209

Open
Shreyas-Microsoft wants to merge 5 commits intodevfrom
psl-ailocation-patch
Open

chore: Refactor location parameter usage in main.bicep#209
Shreyas-Microsoft wants to merge 5 commits intodevfrom
psl-ailocation-patch

Conversation

@Shreyas-Microsoft
Copy link
Copy Markdown
Collaborator

@Shreyas-Microsoft Shreyas-Microsoft commented Apr 29, 2026

Updated location parameter references and descriptions for various resources.

Purpose

This pull request simplifies and unifies the handling of Azure region parameters in the infra/main.bicep file. The key change is the consistent use of the location parameter for resource deployment, replacing previous usage of solutionLocation and cosmosLocation variables. Additionally, the Cosmos DB and AI deployment location parameters have been cleaned up for clarity.

Parameter and variable simplification:

  • Updated the location parameter description to include Cosmos DB and removed the unnecessary solutionLocation variable, ensuring all resources use the same region parameter.
  • Removed the redundant cosmosLocation parameter and ensured Cosmos DB resources use the main location parameter. [1] [2]

Resource module updates:

  • Updated all resource module definitions (e.g., managed identities, log analytics, storage, Cosmos DB, App Configuration, Container Apps) to use the unified location parameter instead of solutionLocation or cosmosLocation. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

Parameter cleanup:

  • Removed the unused aiDeploymentLocation parameter and its allowed values, consolidating AI service location handling.

These changes make the infrastructure code more maintainable and reduce the risk of region mismatches between resources.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Updated location parameter references and descriptions for various resources.
Removed duplicate parameters for AI service location.
Removed duplicate azureAiServiceLocation parameter.
Replaced references to 'solutionLocation' with 'location' for consistency across modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants